<template>
  <div class="page-header col-xs-offset-2 col-xs-8">
    <button @click="tui">⬅后退</button>
    <button @click="jin">前进➡</button>
    <h2>Vue路由测试:{{ a }}:{{ b }}</h2>
  </div>
</template>

<script>
export default {
  name: "Header",
  props: ["a", "b"],
  methods: {
    tui() {
      this.$router.back();
    },
    jin() {
      this.$router.forward();
    },
  },
};
</script>

<style scoped>
</style>